package service

import (
	"goconfcenter/dao/mysql"
	"goconfcenter/models"
	"goconfcenter/service/dto/bus"
)

type OperationLogService struct {
}

func OperationLogServiceInstance() *OperationLogService {
	var operationLogService *OperationLogService
	return operationLogService
}
func (c *OperationLogService) Insert(operationLog *models.OperationLog) *models.OperationLog {
	opLog := mysql.OperationLogDaoInstance().Insert(operationLog)
	return opLog
}
func (c *OperationLogService) PageByQuery(params *bus.OperationLogQuery) ([]*models.OperationLogPoJo, int64) {
	return mysql.OperationLogDaoInstance().PageByQuery(params)
}
